#ifndef __DEV_PIN_H
#define __DEV_PIN_H

#include <stdint.h>
#include "dev_common.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef uint16_t GpioPin;

typedef struct {
    GPIO_TypeDef *gpio;
    GpioPin pinId;
} PhyPin;

void SetPinStatus(PhyPin *pin, GPIO_PinState state);

bool GetPinStatus(PhyPin *pin);

#ifdef __cplusplus
}
#endif
#endif